package evolution.operation.mutation;

public class BoundaryMutation extends AbstractMutation {

	@Override
	public double generateValue() {
		double rand = randomGenerator.nextDouble();
		if (rand < 0.5) {
			return constraints.getMinArg();
		}
		return constraints.getMaxArg();
	}
}
